@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/qrcode/qrcode_add.js"]}){
<form id="qrcodeForm" lay-filter="qrcodeForm" class="layui-form model-form" style="height: 500px">
    <input name="id" type="hidden"/>
    <!--<div class="layui-form-item">
        <label class="layui-form-label">编号<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="qrcode" name="qrcode" placeholder="请输入编号" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">商品编号</label>
        <div class="layui-input-block">
            <input id="goodsNo" name="goodsNo"  placeholder="请输入商品" type="text" class="layui-input" readonly />
            <input id="goodsId" name="goodsId"   type="hidden" />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">代理商</label>
        <div class="layui-input-block">
            <select name="agentId"  id="agentId">
                <option value="">全部代理</option>
                @for( agent in agentList! ){
                    <option value="${agent.userId}">${agent.name}</option>
                @}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input id="remark" name="remark" placeholder="请输入备注" type="text" class="layui-input" />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input type="radio" name="recordStatus" value="1" title="使用" checked />
            <input type="radio" name="recordStatus" value="0" title="禁用"/>
        </div>
    </div>


    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>生成二维码</button>
    </div>
</form>
@}